package com.tarena.lbs.content.config;

import com.tarena.lbs.common.encoder.JwtEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 初始化一个jwt编码器 生成jwt和解析jwt
 */
@Configuration
public class JwtEncoderConfig {

    @Bean
    public JwtEncoder jwtEncoder(){
        JwtEncoder jwtEncoder = new JwtEncoder();
        return jwtEncoder;
    }
}
